#include <iostream>
#include <vector>
using namespace std;

int main()
{
	int n = 0;
	cin >> n;
	if (n == 1 || n == 2)
	{
		cout << -1 << endl;
		return 0;
	}
	for (int i = 3; i > 0; i--)
	{
		cout << i << ' ';
	}
	for (int i = 4; i <= n; i++)
	{
		cout << i << ' ';
	}

	return 0;

}